<%@page contentType="text/html; charset=utf-8" %>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<link href="${ctx}/styles/aux_window.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="${ctx}/scripts/public.js"></script>
<%@ include file="/commons/validation.jsp"%>

<script type="text/javascript">
	var  sourceValue = "";
	function init(){
		$("deposit").fireEvent("onchange");
		sourceValue = $('returnConfigForm').serialize();
		parent.marker = 2;
	}

	function checkReturnConfig(){  //检查是否可以进行分帧页跳转
		var isTrue=$("returnConfigForm").fireEvent("onSubmit");
  		if(!isTrue) return true;  //不通过验证，直接关闭

		var newValue=$('returnConfigForm').serialize();
		if(sourceValue==newValue){
			return true;
		}else{
			return false; //值改变，提示
		}
	}
	function submitWin(){
		document.getElementById('mysubmit').click()
	}
</script>
</head>
<body onload="init();">
  <div id="table04" class="tab_line" >
  <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" valign="top">
	  <tr>
	 	<td align="right">&nbsp;</td>
	  </tr>
                <tr>
                    <td align="left" valign="top">
						<table width="45%" border="0" align="center" cellpadding="0" cellspacing="20">
		                    <tr>
							  <td><p>&nbsp;</p></td>
							  </tr>
		                    <tr>
                      			<td> &nbsp; &nbsp;设定装修保证金退还时间为：</td>
                      		</tr>
                      		<form id="returnConfigForm" name="returnConfigForm" action="${ctx}/system_returnConfig.do?method=update" method="post" class="required-validate">
		                    <tr>
		                    	  <input type="submit" id="mysubmit" style="display:none">
			                      <td >
			                      	&nbsp; &nbsp;装修复验结果通过
			                        	<input style="text-align:right" name="value" type="text"
			                        			class="inputtext required validate-integerB" afterInsert="showMessage"
			                        			value="${returnConfig.value}" size="16" />
			                        	<input id="id" name="id" type="hidden" value="${returnConfig.id}">
			                        	天之后<span id="showMessage"></span>
			                      </td>

		                    </tr>
		                    <tr>
		                      <td>&nbsp; &nbsp;装修违规罚款对应交易码为：
		                      <select id="deposit" name="deposit" style="width:110px;" class="select-one-required"
		                      		onchange="depositMessage.innerText = this.options[this.selectedIndex].description">
								  <option value="" description="">请选择...</option>
		                      	  <c:forEach items="${deposit}" var="item">
		                      	     <option value="${item.keyword}"
		                      	     		 description="${item.description}"
		                      	     		 ${selectedDeposit.keyword == item.keyword ? "selected" : "" }>
		                      	     	${item.bizCode}-${item.description}
		                      	     </option>
		                      	  </c:forEach>
		                      </select>
   								&nbsp; &nbsp;描述：<span id="depositMessage"></span></td>
		                      </tr>
		                      </form>
		                    <tr>
		                      <td >&nbsp;</td>
		                    </tr>

					<tr><td><table border="0" align="right" cellpadding="0" cellspacing="0">
                      <tr>
                        <td>&nbsp;</td>
                        <td class="buttonOffLeft" id="btn1_21"></td>
                        <td class="buttonOffMiddle" id="btn1_22" onClick="document.getElementById('mysubmit').click();" onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)" onBlur="btn_change(2)"><img src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 保 存</td>
                        <td class="buttonOffRight" id="btn1_23"></td>
                        <td>&nbsp;</td>
                      </tr>
                    </table></td></tr>
					<tr><td>&nbsp;</td></tr>
					<tr><td>&nbsp;</td></tr>
					<tr><td>&nbsp;</td></tr>
                </table>
			</td>
        </tr>
    </table>
  </div>
</body>
</html>